package com.ruoyi.property.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.property.mapper.BillManageInfoMapper;
import com.ruoyi.property.domain.BillManageInfo;
import com.ruoyi.property.service.IBillManageInfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 账单催缴Service业务层处理
 * 
 * @author sux
 * @date 2021-06-30
 */
@Service
public class BillManageInfoServiceImpl implements IBillManageInfoService 
{
    @Autowired
    private BillManageInfoMapper billManageInfoMapper;

    /**
     * 查询账单催缴
     * 
     * @param billId 账单催缴ID
     * @return 账单催缴
     */
    @Override
    public BillManageInfo selectBillManageInfoById(Long billId)
    {
        return billManageInfoMapper.selectBillManageInfoById(billId);
    }

    /**
     * 查询账单催缴列表
     * 
     * @param billManageInfo 账单催缴
     * @return 账单催缴
     */
    @Override
    public List<BillManageInfo> selectBillManageInfoList(BillManageInfo billManageInfo)
    {
        return billManageInfoMapper.selectBillManageInfoList(billManageInfo);
    }

    /**
     * 新增账单催缴
     * 
     * @param billManageInfo 账单催缴
     * @return 结果
     */
    @Override
    public int insertBillManageInfo(BillManageInfo billManageInfo)
    {
        return billManageInfoMapper.insertBillManageInfo(billManageInfo);
    }

    /**
     * 修改账单催缴
     * 
     * @param billManageInfo 账单催缴
     * @return 结果
     */
    @Override
    public int updateBillManageInfo(BillManageInfo billManageInfo)
    {
        return billManageInfoMapper.updateBillManageInfo(billManageInfo);
    }

    /**
     * 删除账单催缴对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteBillManageInfoByIds(String ids)
    {
        return billManageInfoMapper.deleteBillManageInfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除账单催缴信息
     * 
     * @param billId 账单催缴ID
     * @return 结果
     */
    @Override
    public int deleteBillManageInfoById(Long billId)
    {
        return billManageInfoMapper.deleteBillManageInfoById(billId);
    }
}
